<!DOCTYPE html>
<html lang="en">
<head>
    <#import "../common/common.macro.ftl" as netCommon>
	<@netCommon.commonStyle />
</head>
<body>
<div class="wrapper">

    <section class="content">
        <div class="row">
            <div class="col-xs-12">
                <div class="box">
                    <form id="addAppUserForm">
                        <input id="appId" type="hidden" class="form-control" name="appId" value="${appId!''}">
                        <select multiple="multiple" name="duallistbox_appUser[]" id="duallist">
                        <#--<#if inAppUsers?exists >
                            <#list inAppUsers as item>
                            <option selected value="${item.username}">${item.username}</option>
                            </#list>
                        </#if>-->
                            <#if notInAppUsers?exists >
                            <#list notInAppUsers as item>
                            <option value="${item.username}">${item.username}--${item.name}</option>
                            </#list>
                            </#if>
                        </select>
                    </form>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-md-4">

            </div>
            <div class="col-md-2">
                <button onclick="addAppUser()" type="button" class="btn btn-block btn-primary btn-xs">添加</button>
            </div>
            <div class="col-md-2">
                <button onclick="closePage()" type="button" class="btn btn-block btn-primary btn-xs">取消</button>
            </div>
        </div>
    </section>

</div>

<@netCommon.commonScript />
<script src="${request.contextPath}/static/js/app.js" ></script>
</body>
</html>